package com.ttj.domain.oracle.gen;

import java.io.Serializable;
import java.util.Date;

public class SuperBranchUser implements Serializable {
    /**
     * ID
     */
    private Integer id;

    /**
     * 部门ID
     */
    private Integer pId;

    /**
     * 职位ID
     */
    private Integer zId;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String pwd;

    /**
     * 姓名
     */
    private String name;

    /**
     * 创建时间
     */
    private Date indate;

    /**
     * 修改时间
     */
    private Date modifTime;

    /**
     * 操作者
     */
    private String author;

    /**
     * 权限操作ID
     */
    private String actionId;

    /**
     * 联系电话
     */
    private String phone;

    /**
     * 用户等级0-员工 1-负责人 2-管理
     */
    private Integer ulevel;

    /**
     * 头像
     */
    private String imgPath;

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    public Integer getId() {
        return id;
    }

    /**
     * ID
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 部门ID
     */
    public Integer getpId() {
        return pId;
    }

    /**
     * 部门ID
     */
    public void setpId(Integer pId) {
        this.pId = pId;
    }

    /**
     * 职位ID
     */
    public Integer getzId() {
        return zId;
    }

    /**
     * 职位ID
     */
    public void setzId(Integer zId) {
        this.zId = zId;
    }

    /**
     * 用户名
     */
    public String getUsername() {
        return username;
    }

    /**
     * 用户名
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 密码
     */
    public String getPwd() {
        return pwd;
    }

    /**
     * 密码
     */
    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    /**
     * 姓名
     */
    public String getName() {
        return name;
    }

    /**
     * 姓名
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 创建时间
     */
    public Date getIndate() {
        return indate;
    }

    /**
     * 创建时间
     */
    public void setIndate(Date indate) {
        this.indate = indate;
    }

    /**
     * 修改时间
     */
    public Date getModifTime() {
        return modifTime;
    }

    /**
     * 修改时间
     */
    public void setModifTime(Date modifTime) {
        this.modifTime = modifTime;
    }

    /**
     * 操作者
     */
    public String getAuthor() {
        return author;
    }

    /**
     * 操作者
     */
    public void setAuthor(String author) {
        this.author = author;
    }

    /**
     * 权限操作ID
     */
    public String getActionId() {
        return actionId;
    }

    /**
     * 权限操作ID
     */
    public void setActionId(String actionId) {
        this.actionId = actionId;
    }

    /**
     * 联系电话
     */
    public String getPhone() {
        return phone;
    }

    /**
     * 联系电话
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 用户等级0-员工 1-负责人 2-管理
     */
    public Integer getUlevel() {
        return ulevel;
    }

    /**
     * 用户等级0-员工 1-负责人 2-管理
     */
    public void setUlevel(Integer ulevel) {
        this.ulevel = ulevel;
    }

    /**
     * 头像
     */
    public String getImgPath() {
        return imgPath;
    }

    /**
     * 头像
     */
    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", pId=").append(pId);
        sb.append(", zId=").append(zId);
        sb.append(", username=").append(username);
        sb.append(", pwd=").append(pwd);
        sb.append(", name=").append(name);
        sb.append(", indate=").append(indate);
        sb.append(", modifTime=").append(modifTime);
        sb.append(", author=").append(author);
        sb.append(", actionId=").append(actionId);
        sb.append(", phone=").append(phone);
        sb.append(", ulevel=").append(ulevel);
        sb.append(", imgPath=").append(imgPath);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperBranchUser other = (SuperBranchUser) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getpId() == null ? other.getpId() == null : this.getpId().equals(other.getpId()))
            && (this.getzId() == null ? other.getzId() == null : this.getzId().equals(other.getzId()))
            && (this.getUsername() == null ? other.getUsername() == null : this.getUsername().equals(other.getUsername()))
            && (this.getPwd() == null ? other.getPwd() == null : this.getPwd().equals(other.getPwd()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getIndate() == null ? other.getIndate() == null : this.getIndate().equals(other.getIndate()))
            && (this.getModifTime() == null ? other.getModifTime() == null : this.getModifTime().equals(other.getModifTime()))
            && (this.getAuthor() == null ? other.getAuthor() == null : this.getAuthor().equals(other.getAuthor()))
            && (this.getActionId() == null ? other.getActionId() == null : this.getActionId().equals(other.getActionId()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getUlevel() == null ? other.getUlevel() == null : this.getUlevel().equals(other.getUlevel()))
            && (this.getImgPath() == null ? other.getImgPath() == null : this.getImgPath().equals(other.getImgPath()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getpId() == null) ? 0 : getpId().hashCode());
        result = prime * result + ((getzId() == null) ? 0 : getzId().hashCode());
        result = prime * result + ((getUsername() == null) ? 0 : getUsername().hashCode());
        result = prime * result + ((getPwd() == null) ? 0 : getPwd().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getIndate() == null) ? 0 : getIndate().hashCode());
        result = prime * result + ((getModifTime() == null) ? 0 : getModifTime().hashCode());
        result = prime * result + ((getAuthor() == null) ? 0 : getAuthor().hashCode());
        result = prime * result + ((getActionId() == null) ? 0 : getActionId().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getUlevel() == null) ? 0 : getUlevel().hashCode());
        result = prime * result + ((getImgPath() == null) ? 0 : getImgPath().hashCode());
        return result;
    }
}